import Vue from 'vue';
Vue.component('trang', {
  render: function(createElem) {
    return createElem(
      'h' + this.level, // 标签名称
      this.$slots.default // 子节点数组
    );
  },
  props: {
    level: {
      type: Number,
      required: true
    }
  }
});
